# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-readme_renderer
pkgver=29.0
pkgrel=2
pkgdesc="readme_renderer is a library for rendering README descriptions for Warehouse"
url="https://github.com/pypa/readme_renderer"
arch="noarch"
license="Apache-2.0"
depends="
	py3-bleach
	py3-docutils
	py3-pygments
	py3-six
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-mock
	py3-pytest
	"
source="https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-$pkgver.tar.gz"
builddir="$srcdir/readme_renderer-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b5f462c3ee077f5711c18a4c0243b084730a705bf5476355265d18ce4bfd696edd30a28aaa8f3aaf96b531a2cbf32bd9ed143431bfbbf08cd7ac7234a2d57a7c  readme_renderer-29.0.tar.gz"
